package com.kaifamiao.linked;

public class KfmLinkedListTest {

	public static void main(String[] args) {
		
		KfmLinkedList<String> list = new KfmLinkedList<>();
		
		list.add( "赖宇" );
		list.add( "姜禹志" );
		list.add( "刘绍骏" );
		list.add( "曾子豪" );
		list.add( "莫雨峰" );
		
		System.out.println( list );
		
		String name = list.get( 2 );
		System.out.println( name );
		
		System.out.println( list.remove( "刘绍骏" ) );
		System.out.println( list );
		
		System.out.println( list.remove( "曾子豪" ) );
		System.out.println( list );
		
		System.out.println( list.remove( "姜禹志" ) );
		System.out.println( list );

	}

}
